package org.jeecg.modules.htxincailiao.industry.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.htxincailiao.industry.entity.HTIndustrySalonApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: ht_industry_salon_apply
 * @Author: jeecg-boot
 * @Date:   2021-06-05
 * @Version: V1.0
 */
public interface HTIndustrySalonApplyMapper extends BaseMapper<HTIndustrySalonApply> {
    @Select("<script>" +
            "SELECT * FROM ht_industry_salon_apply " +
            "WHERE salon_id=#{salonId}" +
            "</script>")
    HTIndustrySalonApply queryBySalonId(@Param("salonId") String salonId);

    @Select("<script>" +
            "SELECT * FROM ht_industry_salon_apply " +
            "WHERE apply_user_id=#{userId} AND salon_id=#{salonId} AND apply_object_type=#{applyObjectType}" +
            "</script>")
    HTIndustrySalonApply queryBy(@Param("userId") String userId, @Param("salonId") String salonId,  @Param("applyObjectType") Integer applyObjectType);
}
